package com.dpf.hou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dpf.hou.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {
    @Delete("delete from user where userid = #{userid}")
    boolean deleteById(Integer userid);

    @Select("select * from user where userid = #{userid}")
    User selectUserid(Integer userid);


}

